<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .aaa {
            cursor: pointer;
        }
    </style>
</head>
<body>

<div class="aaa">
    <ul>
        <li>哈哈</li>
        <li>嘻嘻</li>
        <li>嘎嘎</li>
    </ul>

</div>


<script src="static/jquery-3.6.0.min.js"></script>
<script>
    $("li").click(function () {

            $(this).remove();


        }
    );


</script>
</body>
</html>